﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DllDependenciesAnalysis.Helpers
{
    public class ConsoleColorContent : IDisposable
    {
        ConsoleColor OldColor;

        public ConsoleColorContent(ConsoleColor color)
        {
            OldColor = Console.ForegroundColor;
            Console.ForegroundColor = color;
        }

        public void Dispose()
        {
            Console.ForegroundColor = OldColor;
        }
    }
}
